package com.kkb.service;

import com.kkb.mapper.AdminRoleMapper;
import com.kkb.pojo.AdminRole;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class AdminRoleService {
    @Resource
    private AdminRoleMapper roleMapper;

    @Transactional(propagation = Propagation.REQUIRED,rollbackFor = {Exception.class})
    public AdminRole findById(Integer roleId){

        return roleMapper.findById(roleId);
    }

}
